package cn.com.haopy.dataes.db.entity.erp;


import cn.com.haopy.dataes.db.entity.ErpBaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;


@Data
@TableName(value = "YLYF2ERP.HIS_TRANSFER_ORDER_DTL")
@ApiModel(value = "调拨单")
public class ErpGoods extends ErpBaseEntity {

    @TableId(value = "SEQ_ID", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Integer ID;//自增ID

    @TableField(value = "SALESID", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "调拨单ID")
    private Integer salesId;//调拨单ID

    @TableField(value = "SALESDTLID", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "调拨细单ID")
    private Integer salesdtlId;//调拨细单ID

    @TableField(value = "CUSTOMID", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "客户ID")
    private Integer customId;//客户ID

    @TableField(value = "GOODSID", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "货品ID")
    private Integer goodsId;//货品ID


    @TableField(value = "GOODSNAME", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "货品名称")
    private String goodsName;//货品名称


    @TableField(value = "HEALTHCODE", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "医保编码")
    private String chsCode;//医保编码

    @TableField(value = "LOTNO", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "批号")
    private String lotNo;//批号

    @TableField(value = "INVALIDDATE",jdbcType = JdbcType.DATE)
    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date invalidDate;//有效期

    @TableField(value = "WAREHOUSE", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "储入仓库")
    private String wareHouse;//储入仓库

    @TableField(value = "INTERFACEFLAG", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "接口标记N/Y")
    private String interfaceFlag;//接口标记N/Y

    @TableField(value = "INTERFACEREASON", jdbcType = JdbcType.VARCHAR)
    @ApiModelProperty(value = "处理失败原因")
    private String interfaceReason;//处理失败原因

    @TableField(value = "GOODSQTY", jdbcType = JdbcType.INTEGER)
    @ApiModelProperty(value = "数量")
    private Integer goodsQty;//数量


}
